export default {
    namespaced: true,   //开启命名空间
    state: {
        sum1: 10
    },
    getters: {
    },
    mutations: {
        subtraction(state, demo) {
            state.sum1 -= demo
        },
    },
    actions: {
        asynjian(content, demo) {
            setTimeout(() => {
                content.commit('subtraction', demo)
            }, 1000);
        }
    },

}